<table class="sidebar-table">
    <tr class="sidebar-caption-cell">
        <td>
    <sec:authentication property="name"/>
</td>
</tr>

<tr class="sidebar-login-cell">
    <td>
<c:if test="${not empty param.login_error}">
    <font color="red">
        Your login attempt was not successful, try again.<br/><br/>
        Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
    </font>
</c:if>

<sec:authorize access="hasRole('ROLE_ANONYMOUS')">

    <form action="<c:url value="/j_spring_security_check"/>" method="POST">
          <div class="form-item">
            <label for="j_username">Username:</label>
            <input type="text" name="j_username" id="j_username" value="${userName}"/>
            <label for="j_password">Password:</label>
            <input type="password" name="j_password" id="j_password"/>
        </div>
        <input type="submit" value="Login"/>
    </form>
</sec:authorize>
<%--<div class="login-cell">
    <ul>
        <sec:authorize access="isAnonymous()">
            <li class="li"><a href="<c:url value="/account/create/"/>">Create new account</a></li>
        </sec:authorize>
        <sec:authorize access="hasRole('admin')">
            <li class="li"><a href="<c:url value="/account/list"/>">List accounts</a></li>
        </sec:authorize>
        <sec:authorize access="isAuthenticated()">
            <li class="li"><a href="<c:url value="/account/"/>">My account</a></li>
            <li class="li"><a href="<c:url value="/j_spring_security_logout"/>">Logout</a></li>
        </sec:authorize>

    </ul>
</div>--%>
    <tr>
        <td class="sidebar-clickable-cell">
            <ul>
                <li class="li"><a href="<c:url value='/account/create/'/>">Create new account</a></li>
            </ul>
        </td>
    </tr>

</td></tr><tr><td class="sidebar-footer-cell"></td></tr>
</table>